<?php
class UserModel extends Model{
	protected $table = 'user';
	
	public function getUser($user) {
		$sql  = "select u_id,user,password from {$this -> table} where user = :user and del_flag = :del_flag";
		$data = array(':user' => $user, ':del_flag' => 0);
		return $this -> db -> getRow($sql, $data);
	}
}
?>